package com.jk.controller;

import com.jk.entity.BannerEntity;
import com.jk.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BannerController {

    @Autowired
    private BannerService bannerService;

    @RequestMapping("getBanner")
    public List<BannerEntity>  getBanner(){
        List<BannerEntity> banner = bannerService.getBanner();
        return banner;
    }
}
